<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $score = $_POST["score"];

    // 这里可以将分数保存到数据库，这里简单打印出来
    echo "Score saved: $score";
} else {
    echo "Invalid request";
}
?>